/* Layout */
import Layout from '@/layout'

export default {
  path: '/custmer',
  component: Layout,
  redirect: '/custmer/base-info',
  name: 'custmer',
  meta: {
    title: '客户管理',
    icon: 'link'
  },
  children: [
    {
      path: '/custmer/base-info',
      name: 'base-info',
      component: () => import('@/views/custmer/base-info/buy-info'), // Parent router-view
      meta: { title: '基本信息', icon: 'link' },
      children: [
        {
          path: '/custmer/base-info/buy-info',
          component: () => import('@/views/custmer/base-info/buy-info'),
          name: 'buy-info',
          hidden: true,
          meta: { title: '购物记录', icon: 'link' }
        },
        {
          path: '/custmer/base-info/finance-record',
          component: () => import('@/views/custmer/base-info/finance-record'),
          name: 'finance-record',
          meta: { title: '财务记录', icon: 'link' }
        },
        {
          path: '/custmer/base-info/shopping-record',
          component: () => import('@/views/custmer/base-info/shopping-record'),
          name: 'shopping-record',
          meta: { title: '逛店记录', icon: 'link' }
        }
      ]
    }
  ]
}
